#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main() 
{
	int a;
	int b;
	int c;
	int d;
	int sum;
	double Average;
	scanf("%d %d %d %d", &a, &b, &c, &d);
	sum = a + b + c + d;
	Average = sum/4.0;
	printf("Sum=%d;Average=%.1lf", sum, Average);
	return 0;
}